package com.crm.backend.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author dyy
 * @since 2025-05-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("customer_loss")
public class CustomerLoss implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 流失预警ID，主键，自动递增
     */
    @TableId(value = "cl_id", type = IdType.AUTO)
    private Integer clId;

    /**
     * 客户ID
     */
    private Integer cusId;

    /**
     * 客户经理ID
     */
    private Integer suId;

    /**
     * 上次下单时间
     */
    private LocalDateTime clOrderTime;

    /**
     * 暂缓流失措施
     */
    private String clPause;

    /**
     * 确认流失原因
     */
    private String clLossReason;

    /**
     * 确认流失时间
     */
    private LocalDateTime clLossTime;

    /**
     * 状态。1-预警、2-暂缓、3-流失、4-挽回
     */
    private Integer clStatus;


}
